package com.zyg.jas.studentport.service;

import com.zyg.jas.common.pojo.Score;
import com.zyg.jas.common.pojo.Student;
import com.zyg.jas.studentport.dao.HomeworkDao2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
public interface ScoreService2 {


    Map<String,Integer> getScForLevelByHid(Integer hId);

    Integer getCount(String cmtId, String courseId);

    List<Score> getScoresByCmtId(String cmtId, String courseId, Integer pageNo, Integer pageSize);

    List<Score> getScreForSearch(String cmtId, String hName, String commit, String courseId, Integer pageNo, Integer pageSize);

    Integer getCountForSearch(Map<String, String> paramMap);

    Integer updateScoreById(Integer id, double score, String comment);

    List<Student> getAllStudentForSubmitJob(Integer jobId); //根据作业id查询该班级所有学生

    List<Student> getStudentForSubmitJob(Integer jobId); //根据作业id查询已经提交该作业的学生

    List<Student> getStudentForNoSubmitJob(Integer jobId); //根据作业id查询没有提交作业的学生

    Integer saveHomework(MultipartFile multipartFile, Integer hId, String sNo, String comId) throws IOException, ParseException;

    Integer saveHomeworkForApp(MultipartFile multipartFile, String fileName, Integer hId, String sNo, String comId) throws IOException, ParseException;

    List<Score> selectMyScore(Integer hId, String sNo, String comId);

    Integer deleteById(Integer id);

}
